package com.sailing.xjpb.web.base.configuration;

import org.springframework.format.FormatterRegistry;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;

import java.util.List;

/**
 * spring mvc 扩展：目前只支持参数转换
 */
public interface SailingWebMvcConfigurer {

    default void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {

    }

    default void addFormatters(FormatterRegistry registry) {

    }

    default void addInterceptors(InterceptorRegistry registry) {

    }

    default void addResourceHandlers(ResourceHandlerRegistry registry) {

    }
}
